package cn.tellsea.orm.mybatisplus.service;

import cn.tellsea.orm.mybatisplus.entity.SysUser;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 用户接口
 *
 * @author Tellsea
 * @date 2023/8/4
 */
public interface SysUserService extends IService<SysUser> {

    /**
     * 分页查询
     *
     * @param entity
     * @return
     */
    Page<SysUser> queryPage(SysUser entity);

    /**
     * 查询所有
     *
     * @param entity
     * @return
     */
    List<SysUser> queryList(SysUser entity);

    /**
     * 根据主键查询
     *
     * @param id
     * @return
     */
    SysUser getById(Long id);
}
